import request from '@/utils/request';
//获取全部帖子分页列表
export function getAllPostApi(pageIndex){
    return request({
        method:'get',
        url:'/admin/post/find/all',
        params:{
            "page":pageIndex
        }
    })
}

//获取相应状态的帖子列表
export function getStatusPostApi(status,pageIndex){
    return request({
        method:'get',
        url:'/admin/post/find/status',
        params:{
            "status":status,
            "page":pageIndex
        }
    })
}

//审核帖子
export function auditArticleApi(postId,status){
    return request({
        method:'post',
        url:'/admin/post/update/status',
        data:{
            "id":postId,
            "status":status
        }
    })
}
